package cn.edu.lit.jsjxy.CourseExample.chapter5;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class TestReceiver extends BroadcastReceiver
{

    @Override
    public void onReceive(Context context, Intent intent)
    {
        String str = intent.getExtras().getString("hello");
        Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
        ReceiverTestActivity.txt.setText(str);
    }
}
